<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>动物诊疗机构日常巡查记录</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>监督检查</a>
                </li>
                <li class="active">
                    <strong>动物诊疗机构日常巡查记录</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">
        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_InspectionDate" placeholder="巡查日期"
                                           name="search_InspectionDate" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group" style="display:block;">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"
                                   data-target="#myModalAdd" onclick="addRecord();">
                                    <i class="fa fa-plus"></i> 新增
                                </a>
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">动物诊疗机构日常巡查记录信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查日期</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionDate" name="text_inspectionDate"
                                                   placeholder="巡查日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">被巡查对象名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_inspectionName' name='text_inspectionName'
                                                    class="form-control" onchange="getName2(this.value)">
                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <label class="col-lg-2 control-label">法人或负责人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_legalPerson" name="text_legalPerson" readonly
                                                   placeholder="法人或负责人" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">从业地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_address" name="text_address" readonly
                                                   placeholder="从业地址"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_phone" name="text_phone" placeholder="联系电话" readonly
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">诊疗范围</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_treatment' name='text_treatment' class="form-control"
                                                    placeholder="诊疗范围">
                                                <option value="动物疾病的预防" selected>动物疾病的预防</option>
                                                <option value="动物疾病的诊断">动物疾病的诊断</option>
                                                <option value="动物疾病的治疗">动物疾病的治疗</option>
                                                <option value="动物绝育手术">动物绝育手术</option>
                                                <option value="颅腔、胸腔、腹腔手术">颅腔、胸腔、腹腔手术</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否办理动物诊疗许可证</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_licence' name='text_licence' class="form-control"
                                                    placeholder="是否办理动物诊疗许可证">
                                                <option value="已办理" selected>已办理</option>
                                                <option value="未办理">未办理</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">取得《动物诊疗许可证》后条件是否变化</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_change' name='text_change' class="form-control"
                                                    placeholder="取得《动物诊疗许可证》后条件是否变化">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">显著位置是否公示许可证和从业人员资格证</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_qualification' name='text_qualification'
                                                    class="form-control" placeholder="显著位置是否公示许可证和从业人员资格证">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否规范使用病历</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_medicalRecord' name='text_medicalRecord'
                                                    class="form-control" placeholder="是否规范使用病历">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否规范使用处方笺</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_prescription' name='text_prescription'
                                                    class="form-control"
                                                    placeholder="是否规范使用处方笺">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">病历档案是否保存三年以上</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_archives' name='text_archives' class="form-control"
                                                    placeholder="病历档案是否保存三年以上">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否规范使用兽药和兽医器械</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_apparatus' name='text_apparatus' class="form-control"
                                                    placeholder="是否规范使用兽药和兽医器械">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否按规定年度报告活动</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_activity' name='text_activity' class="form-control"
                                                    placeholder="是否按规定年度报告活动">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">从业人员是否取得执业或助理执业兽医资格证</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_employees' name='text_employees' class="form-control"
                                                    placeholder="从业人员是否取得执业或助理执业兽医资格证">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否经兽医执业注册、登记备案</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_registration' name='text_registration'
                                                    class="form-control"
                                                    placeholder="是否经兽医执业注册、登记备案">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">变更诊疗机构有无重新办理注册或者备案</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_keepRecord' name='text_keepRecord' class="form-control"
                                                    placeholder="变更诊疗机构有无重新办理注册或者备案">
                                                <option value="无变更" selected>无变更</option>
                                                <option value="有变更并重新注册备案">有变更并重新注册备案</option>
                                                <option value="有变更无重新注册备案">有变更无重新注册备案</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否实行注册执业兽医师出具处方</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_issuePrescription' name='text_issuePrescription'
                                                    class="form-control" placeholder="是否实行注册执业兽医师出具处方">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否使用规范格式的处方</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_standardFormat' name='text_standardFormat'
                                                    class="form-control" placeholder="是否使用规范格式的处方">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否按规定合理用药</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_rationalUse' name='text_rationalUse'
                                                    class="form-control"
                                                    placeholder="是否按规定合理用药">
                                                <option value="是" selected>是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">有无使用假劣兽药和国家禁用的药品、化合物</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_fakeMedicine' name='text_fakeMedicine'
                                                    class="form-control"
                                                    placeholder="有无使用假劣兽药和国家禁用的药品、化合物">
                                                <option value="有" selected>有</option>
                                                <option value="无">无</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否按规定定期报告执业活动情况</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_periodicReport' name='text_periodicReport'
                                                    class="form-control" placeholder="是否按规定定期报告执业活动情况">
                                                <option value="有" selected>有</option>
                                                <option value="无">无</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否有出证、出租、出借执业证书情况</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_lend' name='text_lend' class="form-control"
                                                    placeholder="是否有出证、出租、出借执业证书情况">
                                                <option value="有" selected>有</option>
                                                <option value="无">无</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">监督检查情况</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_supervision" name="text_supervision"
                                                   placeholder="监督检查情况" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查现场图片</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <a href="javascript:;" class="a-upload">
                                                <img onclick="$('#text_inspectionPhoto').click()" id="showImage"
                                                     src="" style="display: none" class="img-responsive">
                                                <input type="file" id="text_inspectionPhoto"
                                                       name="text_inspectionPhoto"
                                                       onchange="ImportShipmentStatusList();"/>点击这里上传图片(格式：.png,.gif,.jpg,尺寸：420*250)
                                            </a>
                                            <input name="imgURL" id="imgURL" class="easyui-validatebox"
                                                   type="hidden">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查单位名称 </label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionCompany"
                                                   name="text_inspectionCompany"
                                                   placeholder="巡查单位名称	" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">备注</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_remark" name="text_remark" placeholder="备注"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionPerson"
                                                   name="text_inspectionPerson"
                                                   placeholder="巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">被巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_toInspectionPerson"
                                                   name="text_toInspectionPerson"
                                                   placeholder="被巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/form/animalDaily.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <!-- 文件上传 -->
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    AnimalDaily.init();
</script>
</html>
